new (function(){
	var me = this;
	this.mod = new Gframe.module.RemoteModule({
		//TODO 配置${grid.name}--key
		//key:''
	});
	
	this.mod.defaultView = function(params){
		var id = params.id || '${grid.id}';
		me.mod.main.open({
			id:id,
			xtype:'grid',
			mode:'${grid.mode}',
			checkbox:${grid.checkbox},
			usePage:${grid.usePage},
			track:[
				//TODO 配置${grid.name}--路径
				{name:'${grid.name}'}
			],
			actFilter:function(data,purview){
				//TODO 配置${grid.name}--actFilter
				return purview;
			},
			store:{
				//TODO 配置${grid.name}--服务
				service:'${serviceName}.testAction',
				method:'testGrid',
				params:{
					//TODO 配置${grid.name}--服务参数
				},
				success:function(data,mod){
					//TODO 配置${grid.name}--服务回调
				}
			},
			acts:{
				grid:[
					<#list grid.gridActs as ga>
						//TODO 配置${grid.name}-${ga.name}--样式
						//TODO 配置${grid.name}-${ga.name}--业务逻辑
						{name:'${ga.name}',value:'${ga.name}',imgCls:'preview_btn',handler:function(){
						<#if ga.type = 0>
						me.mod.main.alert({
							text:'${ga.name}',
							level:'info',
							delay:2000
						});
						</#if>
						<#if ga.type = 1>
						me.mod.main.confirm({
							text:'${ga.name}',
							handler:function(confirm){
								if(confirm){
								
								}
							}
						});
						</#if>
						<#if ga.type = 2>
							<#if ga.self = "self">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
									id:'${grid.id}'+new Date().getMilliseconds()
								}
							});
							</#if>
							<#if ga.self = "other">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
								}
							});
							</#if>
						</#if>
					}}<#if ga_has_next>,</#if>
					</#list>
				],
				track:[
					<#list grid.trackActs as ga>
					//TODO 配置${grid.name}-${ga.name}--样式
					//TODO 配置${grid.name}-${ga.name}--业务逻辑
					{name:'${ga.name}',value:'${ga.name}',handler:function(){
						<#if ga.type = 0>
						me.mod.main.alert({
							text:'${ga.name}',
							level:'info',
							delay:2000
						});
						</#if>
						<#if ga.type = 1>
						me.mod.main.confirm({
							text:'${ga.name}',
							handler:function(confirm){
								if(confirm){
								
								}
							}
						});
						</#if>
						<#if ga.type = 2>
							<#if ga.self = "self">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
									id:'${grid.id}'+new Date().getMilliseconds()
								}
							});
							</#if>
							<#if ga.self = "other">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
								}
							});
							</#if>
						</#if>
					}}<#if ga_has_next>,</#if>
					</#list>
				],
				clip:[
					<#list grid.clipActs as ga>
					//TODO 配置${grid.name}-${ga.name}--样式
					//TODO 配置${grid.name}-${ga.name}--业务逻辑
					{name:'${ga.name}',value:'${ga.name}',handler:function(){
						<#if ga.type = 0>
						me.mod.main.alert({
							text:'${ga.name}',
							level:'info',
							delay:2000
						});
						</#if>
						<#if ga.type = 1>
						me.mod.main.confirm({
							text:'${ga.name}',
							handler:function(confirm){
								if(confirm){
								
								}
							}
						});
						</#if>
						<#if ga.type = 2>
							<#if ga.self = "self">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
									id:'${grid.id}'+new Date().getMilliseconds()
								}
							});
							</#if>
							<#if ga.self = "other">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
								}
							});
							</#if>
						</#if>
					}}<#if ga_has_next>,</#if>
					</#list>
				]
			},
			colnums:[
				<#list grid.columns as ga>
				//TODO 配置${grid.name}-${ga.name}--列的宽度
				//TODO 配置${grid.name}-${ga.name}--列的逻辑
				{header:'${ga.name}',mapping:'${ga.mapping}',textAlign:'left',width:'max'}<#if ga_has_next>,</#if>
				</#list>
			],
			initMethod:function(mod){
				
			}
		});
	};
	
	
});